package com.yociyy.admin.model.entity;

import com.yociyy.common.entity.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 字典数据 entity
 * 
 * @author Y.yang
 * @date 2020/5/21
 */
@Data
@Accessors(chain = true)
@Table(name = "base_dict_data")
public class BaseDictData extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/** 字典编码 */
	@Id
	@Column(name = "id")
	@GeneratedValue(generator = "JDBC")
	private Long id;

	/** 字典标签 */
	@Column(name = "dict_label")
	private String dictLabel;

	/** 字典键值 */
	@Column(name = "dict_value")
	private String dictValue;

	/** 字典类型 */
	@Column(name = "dict_type")
	private String dictType;

	/** 状态（0正常 1停用） */
	@Column(name = "enabled")
	private String enabled;

	/** 字典排序 */
	@Column(name = "sorted")
	private Integer sorted;

	/** 备注 */
	@Column(name = "remark")
	private String remark;
}
